<template>
    <el-menu
      :default-active="$route.path"
      class="el-menu-demo"
      router
      @select="handleSelect"
      background-color="#566772"
      text-color="#fff"
      active-text-color="#ffd04b">
      <el-menu-item index="/diagnosis/realtime">实时诊断信息

      </el-menu-item>
      <el-menu-item index="/diagnosis/fault_analysis">设备故障分析</el-menu-item>
      <el-menu-item index="/diagnosis/modeltrain">故障模型训练</el-menu-item>
    </el-menu>
</template>

<script>
import Realtime from './Realtime'

export default {
  name: 'SideMenu2',
  components: {Realtime},
  data () {
    return {
    }
  },

  methods: {
    handleSelect (index) {
      console.log(index)
    }
  }
}
</script>

<style scoped>

</style>
